﻿using System;
using MvcExtensions;
using Microsoft.Practices.ServiceLocation;
using AutoMapper;

namespace mForum.Web.Common.Infrastructure
{
    using mForum.Infrastructure.AutoMapper;

    public class AutoMapperConfiguratorTask : BootstrapperTask
    {
        protected override TaskContinuation ExecuteCore(IServiceLocator serviceLocator)
        {
            Mapper.Initialize(x => x.AddProfile<DefaultProfile>());

            return TaskContinuation.Continue;
        }
    }
}
